package com.campsys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.campsys.entity.Course;
import com.campsys.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CourseMapper extends BaseMapper<Course> {
    @Select("SELECT id, course_name FROM t_course")
    List<Course> getCourses();
}
